package src.main.java.org.oop.polymorphism;

public class Test {
    public static void main(String[] args) {
//        对象多态
        People p1 = new Teacher();
        p1.run(); //行为多态，编译看左边，运行看右边
        People p2 = new Student();
        p2.run();
    }
}
